Skip to content

More loader-config options#69

Open
Pizzabelly wants to merge 1 commit into
Fexty12573:masterfrom
Pizzabelly:loader-config
Open

More loader-config options#69
Pizzabelly wants to merge 1 commit into
Fexty12573:masterfrom
Pizzabelly:loader-config

Conversation

@Pizzabelly

Copy link
Copy Markdown
Contributor

Includes a way to set a list of which DLLs to preload that defaults to dinput8 (Stracker's Loader) and dxgi (ReShade). Also, more GUI options.

Comment thread mhw-cs-plugin-loader/LoaderConfig.h Outdated
Comment on lines +7 to +16
bool LogFile = true;
bool LogCmd = false;
std::string LogLevel = "ERROR";
bool LogFile = false;
bool LogCmd = true;
std::string LogLevel = "INFO";

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted the struct defaults back to what they were. Combined with the other changes in this PR, that is a change of behavior to now use the struct defaults when creating loader-config.json rather than the ConfigFile instance that was defined in the LoaderConfig constructor. If having separate defaults for the "file doesn't exist" path was the desired behavior, I can add that back too. The current behavior of this PR is that the struct defaults are always used unless something different is defined in the file. I've also changed the parsing logic to avoid crashing on a json that is malformed/empty or missing a value.

@Pizzabelly Pizzabelly marked this pull request as ready for review June 12, 2026 18:09
@Pizzabelly

Copy link
Copy Markdown
Contributor Author

This now also includes saving the config when the options are changed from the GUI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants